home *** CD-ROM | disk | FTP | other *** search
- Path: news.daimi.aau.dk!fluid
- From: fluid@daimi.aau.dk (Kr{n Munck Christensen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: iffparse.library problems
- Date: 11 Apr 1996 11:03:53 GMT
- Organization: DAIMI, Computer Science Dept. at Aarhus University
- Message-ID: <4kioup$dc6@gjallar.daimi.aau.dk>
- NNTP-Posting-Host: franc.daimi.aau.dk
-
- I have a bit of a problem with iffparse.library. I'm making a sample
- player for my friend's Toccata 16bit soundcard. I started out by making it
- play raw (cdda) samples. But I would also like it to recognize MAUD files.
- So I used the ParseIFF() function on the stream with StopHunk() (?) set
- to the right header block (MDAT). The problem is: no matter what file I use it
- on, it returns 0 (i.e. no error). Even if it is a raw sample! It should
- return something like IFFERR_FILENOTIFF (?), right? Now, if I use
- ReadChunkyBytes() there are no problems if the stream is indeed a MAUD
- file, but if it is raw sample data, it produces an error after at least one
- succesful read. Why is that? Shouldn't it be possible to use ParseIFF() for
- exactly this kind of file type detection? And why does ReadChunkyBytes()
- read correctly only the first time?
-
- Regards...
-
-
- --
- Kraen Munck, Gudrunsvej 16, 6. TH. | Pink Fluid/x-Subacid
- 8220 Brabrand, Denmark |-------------------------------
- fluid@daimi.aau.dk | Phone: +45 86254737
- http://www.daimi.aau.dk/~fluid/ | Fido: 2:238/100.12
-